*{
    margin:0px auto;
}
a{
    text-decoration: none;
}
ul{
    list-style: none;
   
}

body{
    max-width: 540px;
    min-width: 320px;
    margin:0px auto;
    color:#000;
    background:#f2f2f2;
    overflow-x:hidden;
}
div{
    box-sizing: border-box;
}
/* 搜索模块 */
.search-index{
    display: flex;
    position: fixed;
    max-width: 540px;
    min-width: 320px;
    left:50%;
    top:0;
    transform:translateX(-50%);
    width: 100%;
    height: 44px;
}
.search{
    flex:1;
    height: 26px;
    border:1px solid #cccccc;
    margin:6px 10px;
    border-radius: 10px;
    position: relative;
    font-size: 14px;
    padding-left: 35px;
    line-height: 26px;
    background:#ffffff;
}
.search::before{
    content:"";
    position: absolute;
    top:2px;
    left:5px;
    width: 21px;
    height: 21px;
    background:url("../images/sprite.png") no-repeat 6px 4px;
    background-size: 21px auto;
}
.user{
    width: 44px;
    height: 44px;
    font-size: 12px;
    color:#ffffff;
    text-decoration:none;
    text-align: center;
}
.user::before{
    content:"";
    display: block;
    width: 21px;
    height: 21px;
    background:url("../images/sprite.png") no-repeat  1px -36px;
    background-size: 21px auto;
    margin:2px auto;
}
.banner{
    width: 100%;
    height: 250px;
    background:url("../images/bg.jpg") no-repeat;
    background-size: 100%  100%;
}
.nav{
   margin:-50px  10px  0px 10px;
   background-color: #ffffff;
   border-radius: 8px;
   height: 70px;
   
}
.nav ul{
    display: flex;
    justify-content: space-around;
}
.nav ul li {
    flex:1;
}
.nav ul li a{
    font-size: 12px;
    color:#333333;
    display: flex;
    flex-direction: column;
    align-items: center;
   
}
.nav ul li span.nav-icon{
    width: 40px;
    height: 40px;
    /* background:pink; */
    background:url("../images/nav.png") no-repeat 0px 0px;
    background-size: 40px auto;
    margin:5px;
}
